/**
 * 
 */
package com.zq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zq.dao.UserMapper;
import com.zq.entity.User;
import com.zq.entity.User2;
import com.zq.service.UserService;

/**
 *说明:
 *@version v1.0
 * @author zhangqian(mailto:739428054@qq.com)
 *	创建于:2020年5月6日上午8:59:12
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
@Autowired
private UserMapper mapper;
	@Override
	public void addUser(User user) {
		mapper.addUser(user);
		
	}
	@Override
	public PageInfo<User> getList(User2 user, Integer pageNum) {
		PageHelper.startPage(pageNum, 3);
		List<User> list=mapper.getList(user);
		return new PageInfo<>(list);
	}
	@Override
	public int[] getHouseId() {
		// TODO Auto-generated method stub
		return mapper.getHouseId();
	}

}
